package com.stox.ui.swing.widget.wrapper;

import java.awt.Dimension;

import com.stox.ui.swing.util.SwingUtil;


public class JToolBar extends javax.swing.JToolBar {
	private static final long serialVersionUID = 6905373679919716421L;
	
	private static int height = 30;
	
	private void initialize(){
		SwingUtil.initializeWidget(this);
	}
	
	@Override
	public Dimension getSize() {
		Dimension dimension = super.getSize();
		dimension.height = height;
		return dimension;
	}
	
	@Override
	public Dimension getPreferredSize() {
		Dimension dimension = super.getPreferredSize();
		dimension.height = height;
		return dimension;
	}
	
	public JToolBar() {
		super();
		initialize();
	}

	public JToolBar(int orientation) {
		super(orientation);
		initialize();
	}

	public JToolBar(String name, int orientation) {
		super(name, orientation);
		initialize();
	}

	public JToolBar(String name) {
		super(name);
		initialize();
	}

}
